package com.bawei.mall.product.factory;

import com.bawei.common.core.domain.R;
import com.bawei.mall.product.remote.RemoteProductHotwordInfo;
import org.springframework.cloud.openfeign.FallbackFactory;

import java.util.List;

/**
 * @Author：liurui
 * @Package：com.bawei.mall.product.factory
 * @Project：mall_cloud
 * @name：RemoteProductHotwordInfoFallbackFactory
 */
public class RemoteProductHotwordInfoFallbackFactory implements FallbackFactory<RemoteProductHotwordInfo> {
    @Override
    public RemoteProductHotwordInfo create(Throwable cause) {
        return new RemoteProductHotwordInfo() {
            @Override
            public R<List<String>> find() {
                return null;
            }

            @Override
            public R add(String name) {
                return null;
            }

            @Override
            public R update(Integer id) {
                return null;
            }
        };
    }
}
